`es5-shim.js` and `es5-shim.min.js` monkey-patch a JavaScript context to
contain all EcmaScript 5 methods that can be faithfully emulated with a
legacy JavaScript engine.
`es5-sham.js` and `es5-sham.min.js` monkey-patch other ES5 methods as
closely as possible. For these methods, as closely as possible to ES5
is not very close. Many of these shams are intended only to allow code
to be written to ES5 without causing run-time errors in older engines.
In many cases, this means that these shams cause many ES5 methods to
silently fail. Decide carefully whether this is what you want.
## Tests
The tests are written with the Jasmine BDD test framework.
To run the tests, navigate to <root-folder>/tests/.
In order to run against the shim-code, the tests attempt to kill the current
implementation of the missing methods. This happens in <root-folder>/tests/helpers/h-kill.js.
So in order to run the tests against the built-in methods, invalidate that file somehow
(comment-out, delete the file, delete the script-tag, etc.).
## Shims
### Complete tests ###
* Array.prototype.every
* Array.prototype.filter
* Array.prototype.forEach
* Array.prototype.indexOf
* Array.prototype.lastIndexOf
* Array.prototype.map
* Array.prototype.some
* Array.prototype.reduce
* Array.prototype.reduceRight
* Array.isArray
* Date.now
* Date.prototype.toJSON
* Function.prototype.bind
* /!\ Caveat: the bound function's length is always 0.
* /!\ Caveat: the bound function has a prototype property.
* /!\ Caveat: bound functions do not try too hard to keep you
from manipulating their ``arguments`` and ``caller`` properties.
* /!\ Caveat: bound functions don't have checks in ``call`` and
``apply`` to avoid executing as a constructor.
* Object.keys
* String.prototype.trim
### Untested ###
* Date.parse (for ISO parsing)
* Date.prototype.toISOString
## Shams
* /?\ Object.create
For the case of simply "begetting" an object that
inherits prototypically from another, this should work
fine across legacy engines.
/!\ Object.create(null) will work only in browsers that
support prototype assignment. This creates an object
that does not have any properties inherited from
Object.prototype. It will silently fail otherwise.
/!\ The second argument is passed to
Object.defineProperties which will probably fail
silently.
* /?\ Object.getPrototypeOf
This will return "undefined" in some cases. It uses
__proto__ if it's available. Failing that, it uses
constructor.prototype, which depends on the constructor
property of the object's prototype having not been
replaced. If your object was created like this, it
won't work:
function Foo() {
}
Foo.prototype = {};
Because the prototype reassignment destroys the
constructor property.
This will work for all objects that were created using
`Object.create` implemented with this library.
* /!\ Object.getOwnPropertyNames
This method uses Object.keys, so it will not be accurate
on legacy engines.
* Object.isSealed
Returns "false" in all legacy engines for all objects,
which is conveniently guaranteed to be accurate.
* Object.isFrozen
Returns "false" in all legacy engines for all objects,
which is conveniently guaranteed to be accurate.
* Object.isExtensible
Works like a charm, by trying very hard to extend the
object then redacting the extension.
### Fail silently
* /!\ Object.getOwnPropertyDescriptor
The behavior of this shim does not conform to ES5. It
should probably not be used at this time, until its
behavior has been reviewed and been confirmed to be
useful in legacy engines.
* /!\ Object.defineProperty
This method will silently fail to set "writable",
"enumerable", and "configurable" properties.
Providing a getter or setter with "get" or "set" on a
descriptor will silently fail on engines that lack
"__defineGetter__" and "__defineSetter__", which include
all versions of IE up to version 8 so far.
IE 8 provides a version of this method but it only works
on DOM objects. Thus, the shim will not get installed
and attempts to set "value" properties will fail
silently on non-DOM objects.
https://github.com/kriskowal/es5-shim/issues#issue/5
* /!\ Object.defineProperties
This uses the Object.defineProperty shim
* Object.seal
Silently fails on all legacy engines. This should be
fine unless you are depending on the safety and security
provisions of this method, which you cannot possibly
obtain in legacy engines.
* Object.freeze
Silently fails on all legacy engines. This should be
fine unless you are depending on the safety and security
provisions of this method, which you cannot possibly
obtain in legacy engines.
* Object.preventExtensions
Silently fails on all legacy engines. This should be
fine unless you are depending on the safety and security
provisions of this method, which you cannot possibly
obtain in legacy engines.
没有合适的资源?快使用搜索试试~ 我知道了~
activiti6+springboot2.0+高亮显示当前执行任务+在线web设计器集成
共310个文件
js:105个
png:74个
html:58个
3星 · 超过75%的资源 需积分: 43 118 下载量 122 浏览量
2019-09-29
11:40:54
上传
评论 5
收藏 1.61MB ZIP 举报
温馨提示
用springboot2来集成的activiti6,里面包括了activiti的在线web设计器,高亮显示当前流程实例的正在执行的任务,对activiti任务的测试 上面的功能都是在一个项目中,且项目中有详细的注释,也有一个项目说明.txt用于更好的理解项目 绝对满足你对于activiti的需求,有不懂的可以私信我哦
资源推荐
资源详情
资源评论
收起资源包目录
activiti6+springboot2.0+高亮显示当前执行任务+在线web设计器集成 (310个子文件)
CHANGES 3KB
bootstrap.css 124KB
bootstrap.min.css 98KB
style-common.css 27KB
bootstrap-theme.css 15KB
bootstrap-theme.min.css 13KB
style-editor.css 10KB
style.css 9KB
ng-grid-2.0.7.min.css 7KB
daterangepicker-bs3.css 6KB
editor.css 3KB
style.css 2KB
jasmine.css 2KB
glyphicons-halflings-regular.eot 20KB
glyphicons-halflings-regular.eot 20KB
activiti-admin-webfont.eot 5KB
modeler.ftl 8KB
index.ftl 1KB
loading.gif 17KB
nw-handle-dark.gif 839B
se-handle-dark.gif 838B
.gitignore 25B
event-listeners-popup.html 10KB
form-properties-popup.html 9KB
execution-listeners-popup.html 8KB
editor.html 8KB
task-listeners-popup.html 7KB
index.html 5KB
fields-popup.html 4KB
out-parameters-popup.html 3KB
in-parameters-popup.html 3KB
signal-definitions-popup.html 3KB
assignment-popup.html 3KB
message-definitions-popup.html 2KB
subprocess-reference-popup.html 2KB
sequenceflow-order-popup.html 2KB
save-model.html 2KB
index.html 2KB
index.min.html 2KB
condition-expression-popup.html 1KB
stencil-item-template.html 1KB
unsaved-changes.html 998B
select-shape.html 831B
feedback-popup.html 814B
assignment-display-template.html 799B
text-popup.html 729B
root-stencil-item-template.html 473B
message-property-write-template.html 278B
signal-property-write-template.html 271B
string-property-write-mode-template.html 246B
multiinstance-property-write-template.html 239B
default-value-display-template.html 234B
execution-listeners-display-template.html 211B
event-listeners-display-template.html 199B
form-properties-display-template.html 197B
out-parameters-display-template.html 194B
task-listeners-display-template.html 194B
in-parameters-display-template.html 191B
signal-definitions-display-template.html 190B
message-definitions-display-template.html 190B
subprocess-reference-display-template.html 175B
fields-display-template.html 175B
condition-expression-display-template.html 174B
subprocess-reference-write-template.html 173B
sequenceflow-order-display-template.html 171B
signal-definitions-write-template.html 164B
condition-expression-write-template.html 164B
message-definitions-write-template.html 163B
execution-listeners-write-template.html 163B
sequenceflow-order-write-template.html 162B
form-properties-write-template.html 159B
event-listeners-write-template.html 159B
out-parameters-write-template.html 158B
task-listeners-write-template.html 158B
in-parameters-write-template.html 157B
text-property-write-template.html 157B
assignment-write-template.html 155B
fields-write-template.html 151B
boolean-property-template.html 139B
icon-template.html 122B
dai-noodle-shop.iml 81B
ModelerController.java 7KB
Acti.java 5KB
ControllerDe.java 4KB
ModelSaveRestResource.java 3KB
ModelEditorJsonRestResource.java 2KB
StencilsetRestResource.java 1KB
WebMvcConfigurer.java 951B
NoodleShopApplication.java 442B
oryx.debug.js 761KB
oryx.js 335KB
jquery.js 276KB
jquery.js 251KB
raphael_uncompressed.js 222KB
angular.min.js 99KB
prototype-1.5.1.js 97KB
jquery.min.js 94KB
raphael.2.1.1.js 89KB
raphael.js 89KB
jquery-ui-1.10.3.custom.min.js 81KB
共 310 条
- 1
- 2
- 3
- 4
qq_36984017
- 粉丝: 10
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页