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

Summary: wrongly detect global variable not defined.
Product: javascript Reporter: kklou
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: screenshot

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.