This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269481 - wrongly detect global variable not defined.
Summary: wrongly detect global variable not defined.
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-03 08:20 UTC by kklou
Modified: 2017-01-03 08:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (29.20 KB, image/png)
2017-01-03 08:20 UTC, kklou
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kklou 2017-01-03 08:20:54 UTC
Created attachment 163327 [details]
screenshot

============================================
wrongly detect global variable not defined of "app"
in javascript editor
============================================

/**
 * Framework7 1.5.2
 * Full featured mobile HTML framework for building iOS & Android apps
 * 
 * http://framework7.io/
 * 
 * Copyright 2016, Vladimir Kharlampidi
 * The iDangero.us
 * http://www.idangero.us/
 * 
 * Licensed under MIT
 * 
 * Released on: December 17, 2016
 */
(function () {

    'use strict';
    /*===========================
    Framework 7
    ===========================*/
    window.Framework7 = function (params) {
        // App
        var app = this;
    
        // Version
        app.version = '1.5.0';
    
        // Default Parameters
        app.params = {... };
    
        // Extend defaults with parameters
        for (var param in params) {
            app.params[param] = params[param]; //<---------wrongly detect global variable not defined of "app".
        }
    
        // DOM lib
        var $ = Dom7;
    
        // Template7 lib
        var t7 = Template7;
        app._compiledTemplates = {};
    
        // App Root
        app.root = $(app.params.root); //<---------wrongly detect global variable not defined of  the 2nd "app".
        app.root.eq(0).addClass('framework7-root'); //<---------wrongly detect global variable not defined of "app".
        ...
        ...
       and many followings.
You may download the Framework7 source code to see all error hints.