Repository: chukwa Updated Branches: refs/heads/master fcfcc088b -> 6276ed15c
CHUKWA-812. Added throttle to dashboard save. (Eric Yang) Project: http://git-wip-us.apache.org/repos/asf/chukwa/repo Commit: http://git-wip-us.apache.org/repos/asf/chukwa/commit/6276ed15 Tree: http://git-wip-us.apache.org/repos/asf/chukwa/tree/6276ed15 Diff: http://git-wip-us.apache.org/repos/asf/chukwa/diff/6276ed15 Branch: refs/heads/master Commit: 6276ed15c46dd08a21ae9240e4371930d5a5b2d5 Parents: fcfcc08 Author: Eric Yang <[email protected]> Authored: Sat Nov 12 13:59:47 2016 -0800 Committer: Eric Yang <[email protected]> Committed: Sun Nov 13 09:55:20 2016 -0800 ---------------------------------------------------------------------- src/main/web/hicc/home/js/throttle.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/chukwa/blob/6276ed15/src/main/web/hicc/home/js/throttle.js ---------------------------------------------------------------------- diff --git a/src/main/web/hicc/home/js/throttle.js b/src/main/web/hicc/home/js/throttle.js index f8f7ff0..5b6bf46 100644 --- a/src/main/web/hicc/home/js/throttle.js +++ b/src/main/web/hicc/home/js/throttle.js @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + function throttle(fn, threshhold, scope) { threshhold || (threshhold = 250); var last,
