diff --git a/js/ui/cordova/plugins/cordova-plugin-chrome-apps-common/stubs.js b/js/ui/cordova/plugins/cordova-plugin-chrome-apps-common/stubs.js new file mode 100644 index 0000000..94bacb3 --- /dev/null +++ b/js/ui/cordova/plugins/cordova-plugin-chrome-apps-common/stubs.js @@ -0,0 +1,10 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +exports.createStub = function(obj, propName, value) { + obj.__defineGetter__(propName, function() { + console.warn('Access made to stub: ' + obj.__namespace__ + '.' + propName); + return value; + }); +};