I've been building a basic live-evaluation javascript development environment (I call it the WEPL.) over the past few days, and realized it'd be nice to be able to associate error messages to line numbers.  Unfortunately, eval() doesn't p...
Assuming the presence of Harmony Proxies in the underlying Javascript engine, how could one construct a CoffeeScript superclass such that extending it would allow a class to define a noSuchMethod method (or methodMessing)?  That method would be calle...
I need something like this.  var thing_<?php echo $php_var->n ?> = <?php echo '32' ?>   want to create something like this :   var thing_342 = '32'...
Is it possible to read a java script function arguments and their type information?  For example, i have a class below:      sap.ui.define( ['sap/ui/core/theming/Parameters'],             function(P){                 'use strict';...
JavaScript strict mode forbids usage of the eval function. However, I don't see how dynamic code loading/generation can be implemented without it. Are there any new APIs for this? What are the alternatives?...
I've been experimenting with metaprogramming in webpages, and need to delay a script tag from running until just after another script tag has been run. However, the script tag needs to be loaded first or both of them will fail.   Shortened and mo...
I want to do something like the following, where Parent.setupMethod would create both instance methods on the subclass (only) as well as class methods. Is this possible?  class Parent   @setupMethod: (name) ->     # do whatever to setup method on...
Just started learning about Proxies and Reflection, and would appreciate some guidance in the right direction since I got kinda lost here. My task is to create a class Wand which accepts an object of functions (spells). Each spell invocation should a...
I want to write a function like this:  function myNew(constructor) {     return constructor.applyNew(Array.prototype.slice.call(arguments, 1)); }   Only applyNew doesn't exist. Is there a way around this?...
I have collection of similar objects which should be handled same way.  Example of objects:  Foo (id, title, size) Bar (id, name, count, ...) ...   Normally for each I should create 3 files +register in MyApp.Application stores and views. I want avoi...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.